const state = {
  customCode: "",
  customsArea: false,
  customsList: null,
  AEODialogShow: {
    show: false,
    value: null,
  },
  enterpriseLabel: null,
  E_token: null,
  showIndustry: {
    show: false,
    value: null,
  },
  showYJJ: {
    show: false,
    value: null,
  },
};
const mutations = {
  changeCustomCode(state, val) {
    state.customCode = val;
  },
  changeCustomsArea(state, val) {
    state.customsArea = val;
  },
  changeCustomsList(state, val) {
    state.customsList = val;
  },
  changeAEODialogShow(state, val) {
    state.AEODialogShow = val;
  },
  changeEnterpriseLabel(state, val) {
    state.enterpriseLabel = val;
  },
  changeToken(state, val) {
    state.E_token = val;
  },
  changeShowIndustry(state, val) {
    state.showIndustry = val;
  },
  changeShowYJJ(state, val) {
    state.showYJJ = val;
  },
};

const actions = {
  setCustomCode({ commit }, data) {
    commit("changeCustomCode", data);
  },
  setCustomsArea({ commit }, data) {
    commit("changeCustomsArea", data);
  },
  setCustomsList({ commit }, data) {
    commit("changeCustomsList", data);
  },
  setAEODialogShow({ commit }, data) {
    commit("changeAEODialogShow", data);
  },
  setEnterpriseLabel({ commit }, data) {
    commit("changeEnterpriseLabel", data);
  },
  setToken({commit},data){
    commit("changeToken", data);
  }
};

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

